Skip to content

Conversation

@stevemolitor
Copy link
Owner

Summary

  • Adds monet-diff-ignore-whitespace configuration variable to control whether whitespace changes are ignored in diffs
  • When enabled, uses the -w flag with diff to ignore whitespace changes
  • Helps reduce noise in diffs caused by line ending differences between operating systems

Changes Made

  • Added new defcustom variable monet-diff-ignore-whitespace (defaults to nil for backward compatibility)
  • Modified diff switches logic in monet-simple-diff-tool to conditionally include -w flag
  • Added comprehensive documentation for the new option

Test Plan

  • Verified Emacs Lisp syntax is correct
  • Tested conditional logic produces expected diff switches
  • Confirmed backward compatibility (default behavior unchanged)
  • Validated that -w flag is only added when option is enabled

Usage

Users can enable this feature by setting:

(setq monet-diff-ignore-whitespace t)

Fixes #23

- Add monet-diff-ignore-whitespace defcustom variable
- Modify diff switches to conditionally include -w flag
- Helps reduce noise from line ending differences between OS
- Backward compatible, disabled by default

Fixes #23
- Add configuration example to README.md customization section
- Add CHANGELOG entry for version 0.0.4 with new feature description
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Line endings creating bloated diffs

2 participants